<?php

namespace app\home\controller;

use app\company\service\DataService;
use library\Controller;
use think\Db;
use app\common\controller\Email;
use PhpOffice\PhpSpreadsheet\Calculation\MathTrig\Sum;

/**
 * 支付记录列表管理
 * Class User
 * @package app\worker\controller
 */
class PayLog extends Controller
{
    /**
     * 绑定当前数据表
     * @var string
     */
    protected $table = 'pay_log';

    /**
     * 支付记录列表管理
     * @auth true
     * @menu true
     */
    public function index()
    {
        $this->title = '支付记录列表管理';
        $query = $this->_query($this->table)
        ->equal('table,ware_house_id');
        if(request()->get('id')){
            $query->where('primary_key', request()->get('id')); 
        }
        $query->order('create_at desc')
            ->page();
    }
}
